package com.example.wallet.constant

/**
 * 正则表达式:验证邮箱
 */
const val REGEX_EMAIL =
    "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$"

/**
 * 正则表达式:验证邮箱
 * 简单匹配
 */
const val REGEX_EMAIL_SAMPLE =
    "\\\\w+@(\\\\w+.)+[a-z]{2,3}"

/**
 * 正则表达式:验证密码(不包含特殊字符)
 */
const val REGEX_PASSWORD = "^[a-zA-Z0-9]{6,16}$"

/**
 * 正则表达式:验证密码为数字与字母组合
 * */
const val REGEX_PASSWORD_NUMBER_AND_LETTER="[0-9]+[a-zA-Z]+[0-9a-zA-Z]*|[a-zA-Z]+[0-9]+[0-9a-zA-Z]*"

